﻿using System.ComponentModel.DataAnnotations.Schema;
using System;
using JTTD.Common.Enum;

namespace JTTD.DataBase.Model.Integral
{
    /// <summary>
    /// 积分收支记录
    /// </summary>
    [Table("t_integral_record")]
    public class IntrgralRecordModel : BaseModel
    {
      
        /// <summary>
        /// 用户id
        /// </summary>
        [Column("user_id")]
        public int UserId { get; set; }
      
        /// <summary>
        /// 积分记录类型（收入：0，支出：1）
        /// </summary>
        [Column("type")]
        public RecordTypeEnum Type { get; set; }

        /// <summary>
        /// 积分
        /// </summary>
        [Column("integral")]
        public decimal Integral { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        [Column("operating_time")]
        public DateTime OperatingTime { get; set; }

        [Column("after")]
        public decimal After { get; set; }

        /// <summary>
        /// 结算前
        /// </summary>
        [Column("before")]
        public decimal Before { get; set; }
    }
}
